package cn.yxsm.yxmall.controller;

import cn.yxsm.yxmall.mapper.ProductCttMapper;
import cn.yxsm.yxmall.pojo.entity.ProductCtt;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/productCtt")
public class ProductCttController {
    @Autowired(required = false)
    ProductCttMapper mapper;
    @RequestMapping("/productCtt/insert")
    public void insert(ProductCtt pc){
        System.out.println("pc = " + pc);
        mapper.insert(pc);
    }
}
